<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目权限</title>
    <script src="/js/jquery.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/js/jquery.cookei.js"></script>
    <script src="/js/myAjax.js"></script>
    <script src="/js/permission/authority.js"></script>
    <link rel="stylesheet" href="/css/select-info.css">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="../../js/utlis/delete.js"></script>
</head>
<body>
<div class="select-info">
    <div>权限名：<input type="text" id="name"></div>
    <div>添加时间：<input type="text" id="createTime"></div>
    <div><input type="button" value="查询" onclick="findAll()"></div>
</div>
<div style="display: flex;line-height: 60px">
    <div>
        <input style="border-radius: 5px;background-color: #009E94" type="button" value="添加权限"
               onclick="addPermission()"></div>
    <div>
        <input style="border-radius: 5px;background-color: #009E94" type="button" value="删除权限"
        onclick="deleteBatches('/permission/delete')"></div>
</div>
<table class="table_manage">
    <caption></caption>
    <thead>
    <tr>
        <th><input type="button" value="全选/取消" onclick="checkAll()">ID</th>
        <th>权限名称</th>
        <th>属性值</th>
        <th>路径</th>
        <th>状态</th>
        <th>类型</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody id="findAll">

    </tbody>
</table>
<div id="page" style="line-height: 50px;">
    分页
</div>
</body>
<script>
    layui.use('laydate', function () {
        let laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#signDate' //指定元素
            , type: 'date'
            , format: 'yyyy-MM-dd'
        });
    });
</script>
</html>